package com.haven123.cloudapp.service.a.controller;

import com.haven123.cloudapp.service.a.feign.HelloService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class HelloController {

    @Autowired private HelloService helloService;

    @RequestMapping("/hello")
    public String hello(){
        log.info("============hello service a===============");
        String hello = helloService.hello();
        return hello;
    }
}
